package com.ucpaas.sms.util;

import org.apache.poi.ss.formula.functions.T;

import java.util.concurrent.Callable;
import java.util.concurrent.ExecutorService;
import java.util.concurrent.Executors;
import java.util.concurrent.Future;

public class ThreadPool {

    static ExecutorService executorService = Executors.newFixedThreadPool(30);


    public static <T> Future<T> submit(Callable<T> task){
        return executorService.submit(task);
    }
}
